hvm: Fix a typo in p2m.c.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 10 Apr 2008 15:17:28 +0000 (16:17 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 10 Apr 2008 15:17:28 +0000 (16:17 +0100)
Spotted by Xiao Wang <sirouni@yahoo.com.cn>

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/mm/p2m.c

index 13bfada81109721df3dc45daa43531f5bba2b350..97d92880bb9f8c49feb441de405386316a254948 100644 (file)
@@ -941,7 +941,7 @@ void p2m_change_type_global(struct domain *d, p2m_type_t ot, p2m_type_t nt)
                     mfn = l1e_get_pfn(l1e[i1]);
                     gfn = get_gpfn_from_mfn(mfn);
                     /* create a new 1le entry with the new type */
-                    flags = p2m_flags_to_type(nt);
+                    flags = p2m_type_to_flags(nt);
                     l1e_content = l1e_from_pfn(mfn, flags);
                     paging_write_p2m_entry(d, gfn, &l1e[i1],
                                            l1mfn, l1e_content, 1);